package com.snail.app.config.entity;

import com.snail.common.entity.IdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @description 数据库连接字典，存储可连数据库类型、版本、driverName等
 * @date 2021/8/3
 * @autor houyanfeng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "db_dic_database")
public class DbDicDatabase extends IdEntity {
    @Column(length = 30)
    private String description;//中文描述
    @Column(length = 20)
    private String name;//数据库类型名称
    @Column(length = 30)
    private String version;//版本
    @Column(length = 50)
    private String driver;//驱动名
    private Integer sort;//排序
    @Column(length = 200)
    private String url;
    @Column(length = 50)
    private String testSql;//测试连接sql

}
